package app.kotlin_1.basemvp

/**
 * Created by 刘智强 on 2017/10/13.
 * presenter的基类
 */

abstract class BasePresenter<in V : BaseView<M>,  M : BaseModel> {
    public var view: BaseView<M>? = null
    public var model: BaseModel? = null
    abstract fun attachView(v: V)
    abstract fun dettachView()
    abstract  fun getDataFromModel():M
    abstract  fun  setData(model:M)


}